-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix][broker]excessive replication speed leads to error: Producer send queue is full #24189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][broker]excessive replication speed leads to error: Producer send queue is full #24189
Conversation
@poorbarcode is there any relationship to PIP-269: Add an epoch of cursor to discard outdated reading or any other previous reported issues ? |
It does not relate to |
/pulsarbot rerun-failure-checks |
424c175
to
1d6d5be
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24189 +/- ##
============================================
+ Coverage 73.57% 74.26% +0.68%
- Complexity 32624 32752 +128
============================================
Files 1877 1868 -9
Lines 139502 145542 +6040
Branches 15299 16660 +1361
============================================
+ Hits 102638 108081 +5443
- Misses 28908 28924 +16
- Partials 7956 8537 +581
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
...roker/src/main/java/org/apache/pulsar/broker/service/persistent/GeoPersistentReplicator.java
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentReplicator.java
Outdated
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentReplicator.java
Outdated
Show resolved
Hide resolved
test failure:
could be a flaky test, attempt to fix was #24141 |
there seems to be more flakiness in tests. I can see the first attempt failed in a replication test as well
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please debug the flaky test failures in replication tests before we merge this change.
/pulsarbot rerun-failure-checks |
…ersistent/PersistentReplicator.java Co-authored-by: Kai Wang <[email protected]>
7a565f2
to
880ba91
Compare
Dismissed @lhotari's request change because he did not reply for a long time |
…d queue is full (#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3)
…d queue is full (#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3)
…d queue is full (#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3)
…d queue is full (apache#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3) (cherry picked from commit 1d49396)
…d queue is full (apache#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3) (cherry picked from commit 96be3bb)
…d queue is full (apache#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3) (cherry picked from commit 1d49396)
…d queue is full (apache#24189) Co-authored-by: Kai Wang <[email protected]> (cherry picked from commit 37b17d3) (cherry picked from commit 96be3bb)
Motivation
Background
replicationProducerQueueSize
pendingMessages
that records how many messages are pending to be publishedfetchSchemaInProgress
astrue
waitForCursorRewinding
astrue
inflight cursor reading
, which was limited byhavePendingRead
.inflight publishing
Issue: The multiple mechanisms described above can not work well
read more entries A
read more entries B
1000
1000
havePendingRead -> true
1000
msgshavePendingRead -> true
1000
msgs are still in-progress1000
msgs2000
msgs in publishing, which is more than expected, get errorProducer send queue is full
read more entries
, leads the situation baderModifications
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x